package com.example.news_demo.mapper;

import com.example.news_demo.entity.View;
import com.example.news_demo.entity.ViewLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface ViewMapper {

    public void insertView(@Param("view")View view);

    public List<View> getAllByUserId(int userId);

    public List<View> getAllByUserIdGreater(int userId);

}
